package com.smarthome.common.tools.excel;

import org.apache.commons.lang.StringUtils;

/**
 * <p>
 * </p>
 * 
 */

public class HeaderUtil {

    /**
     * headerImpl
     */
    private static HeaderUtil headerImpl = new HeaderUtil();

    /**
     * 私有类
     * <p>
     * </p>
     */
    private HeaderUtil() {

    }

    /**
     * 获取类的实例
     * <p>
     * @return </p>
     */
    public static HeaderUtil getInstance() {
        return headerImpl;
    }

    /**
     * 
     * @param title
     * @return
     * @throws ForumException
     */
    public ReportHeader getReportHeader(String title) {
        if (StringUtils.isEmpty(title))
            return null;
        StringBuffer headerTitle = new StringBuffer();
        headerTitle.append(title);
        return new ReportHeader(headerTitle.toString(), 20000);
    }

}